package com.learn.design.visitor.example;

import java.util.Random;

/**
 * @author Administrator
 */
public abstract class Staff {

    public String name;
    /**
     * 员工KPI
     */
    public int kpi;

    public Staff(String name) {
        this.name = name;
        kpi = new Random().nextInt(10);
    }

    /**
     * 核心方法，接受Visitor的访问
     * @param visitor
     */
    abstract void accept(Visitor visitor);

}
